<!DOCTYPE HTML>
<meta charset="utf-8">
<html>
<head>
	<title>Cookie测试页面1</title>
</head>
<body>

	
<input type="text" id="input1">输入Cookie1</input>
<input type="text" id="input2">输入Cookie2</input>
<button id="btn1">set cookie</button>

<script src="https://cdn.bootcss.com/jquery/3.3.1/jquery.js"></script>
<script src="https://cdn.bootcss.com/jquery-cookie/1.4.1/jquery.cookie.js"></script>
<script>
	$("#btn1").click(function function_name(argument) {
		// body...
		$.cookie("text1",$("#input1").val());
		$.cookie("text2",$("#input2").val());
	});
</script>
</body>
</html>